package com.hzqy.persistence.dao.sh_cmcc;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.sh_cmcc.BossVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public class BossDao extends PersistenceDao<BossVo, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	
	public int findBossCount(BossVo bossVo) {
		String namespace = this.getNamespace();
		return getSqlSession().selectOne(namespace + "findBossCount", bossVo);
	}
	
	public List<BossVo> findBossList(Map<String,Object> map){
		String namespace = this.getNamespace();
		return getSqlSession().selectList(namespace + "findBossList", map);
	}
}
